
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>6.1 概述 · 大数据 Fulume 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="62-kafka-stream-shu-ju-qing-xi-an-li.html" />
    
    
    <link rel="prev" href="../di-6-zhang-kafka-stream.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 Kafka 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../11-xiao-xi-dui-lie.html">
            
                <a href="../11-xiao-xi-dui-lie.html">
            
                    
                    1.1 消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../12-wei-shi-yao-xu-yao-xiao-xi-dui-lie.html">
            
                <a href="../12-wei-shi-yao-xu-yao-xiao-xi-dui-lie.html">
            
                    
                    1.2 为什么需要消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="../13-shi-yao-shi-kafka.html">
            
                <a href="../13-shi-yao-shi-kafka.html">
            
                    
                    1.3 什么是 Kafka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="../14-kafka-jia-gou.html">
            
                <a href="../14-kafka-jia-gou.html">
            
                    
                    1.4 Kafka 架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 Kafka 集群部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../chapter1/21-xia-zai-kafka.html">
            
                <a href="../chapter1/21-xia-zai-kafka.html">
            
                    
                    2.1 下载 Kafka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../chapter1/22-bu-shu.html">
            
                <a href="../chapter1/22-bu-shu.html">
            
                    
                    2.2 部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chapter1/23-kafka-chang-yong-ming-ling-cao-zuo.html">
            
                <a href="../chapter1/23-kafka-chang-yong-ming-ling-cao-zuo.html">
            
                    
                    2.3 Kafka 常用命令操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi.html">
            
                    
                    第 3 章 Kafka 工作流程分析
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/31-kafka-sheng-cheng-guo-cheng-fen-xi.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/31-kafka-sheng-cheng-guo-cheng-fen-xi.html">
            
                    
                    3.1 Kafka 生产过程分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/32-broker-bao-cun-xiao-xi.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/32-broker-bao-cun-xiao-xi.html">
            
                    
                    3.2 broker 保存消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/33-zookeeper-cun-chu-jie-gou.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/33-zookeeper-cun-chu-jie-gou.html">
            
                    
                    3.3 Zookeeper 存储结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/34-kafka-xiao-fei-guo-cheng-fen-xi.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/34-kafka-xiao-fei-guo-cheng-fen-xi.html">
            
                    
                    3.4 Kafka 消费过程分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/35-xiao-fei-zhe-zu-an-li.html">
            
                <a href="../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/35-xiao-fei-zhe-zu-an-li.html">
            
                    
                    3.5 消费者组案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../di-4-zhang-api-shi-zhan.html">
            
                <a href="../di-4-zhang-api-shi-zhan.html">
            
                    
                    第 4 章 API 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../di-4-zhang-api-shi-zhan/41-huan-jing-zhun-bei.html">
            
                <a href="../di-4-zhang-api-shi-zhan/41-huan-jing-zhun-bei.html">
            
                    
                    4.1 环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../di-4-zhang-api-shi-zhan/42-kafka-sheng-chan-zhe-api.html">
            
                <a href="../di-4-zhang-api-shi-zhan/42-kafka-sheng-chan-zhe-api.html">
            
                    
                    4.2 Kafka 生产者 API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api.html">
            
                <a href="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api.html">
            
                    
                    4.3 Kafka 消费者 API
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/431-kafka-xiao-fei-zhe-zhi-gao-ji-api.html">
            
                <a href="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/431-kafka-xiao-fei-zhe-zhi-gao-ji-api.html">
            
                    
                    4.3.1 Kafka 消费者之高级 API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/432-kafka-xiao-fei-zhe-zhi-di-ji-api.html">
            
                <a href="../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/432-kafka-xiao-fei-zhe-zhi-di-ji-api.html">
            
                    
                    4.3.2 Kafka 消费者之低级 API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../di-5-zhang-lan-jie-qi.html">
            
                <a href="../di-5-zhang-lan-jie-qi.html">
            
                    
                    第 5 章 拦截器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../51-lan-jie-qi-yuan-li.html">
            
                <a href="../51-lan-jie-qi-yuan-li.html">
            
                    
                    5.1 拦截器原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../52-lan-jie-qi-an-li.html">
            
                <a href="../52-lan-jie-qi-an-li.html">
            
                    
                    5.2 拦截器案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../di-6-zhang-kafka-stream.html">
            
                <a href="../di-6-zhang-kafka-stream.html">
            
                    
                    第 6 章 Kafka stream
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.6.1" data-path="61-gai-shu.html">
            
                <a href="61-gai-shu.html">
            
                    
                    6.1 概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="62-kafka-stream-shu-ju-qing-xi-an-li.html">
            
                <a href="62-kafka-stream-shu-ju-qing-xi-an-li.html">
            
                    
                    6.2 Kafka Stream 数据清洗案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../di-7-zhang-kuo-zhan.html">
            
                <a href="../di-7-zhang-kuo-zhan.html">
            
                    
                    第 7 章 扩展
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../di-7-zhang-kuo-zhan/71-kafka-he-flume-ji-cheng.html">
            
                <a href="../di-7-zhang-kuo-zhan/71-kafka-he-flume-ji-cheng.html">
            
                    
                    7.1 Kafka 和 Flume 比较
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../di-7-zhang-kuo-zhan/72-kafka-he-flume-ji-cheng.html">
            
                <a href="../di-7-zhang-kuo-zhan/72-kafka-he-flume-ji-cheng.html">
            
                    
                    7.2 Kafka 和 Flume 集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi.html">
            
                <a href="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi.html">
            
                    
                    7.3 Kafka 配置信息
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.3.1" data-path="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/731-broker-pei-zhi-xin-xi.html">
            
                <a href="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/731-broker-pei-zhi-xin-xi.html">
            
                    
                    7.3.1 broker 配置信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.2" data-path="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.html">
            
                <a href="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.html">
            
                    
                    7.3.2 Producer 配置信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.3" data-path="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/733-consumer-pei-zhi-xin-xi.html">
            
                <a href="../di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/733-consumer-pei-zhi-xin-xi.html">
            
                    
                    7.3.3 Consumer 配置信息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >6.1 概述</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="61-&#x6982;&#x8FF0;">6.1 &#x6982;&#x8FF0;</h1>
<p>&#x7F16;&#x5199;&#x5173;&#x952E;&#x4EFB;&#x52A1;&#x5B9E;&#x65F6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x548C;&#x5FAE;&#x670D;&#x52A1;&#x7684;&#x6700;&#x7B80;&#x5355;&#x65B9;&#x6CD5;&#xFF0C;&#x5177;&#x6709; Kafka &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x96C6;&#x7FA4;&#x6280;&#x672F;&#x7684;&#x6240;&#x6709;&#x4F18;&#x52BF;&#x3002;</p>
<p>Kafka Streams &#x662F; Apache Kafka &#x5F00;&#x6E90;&#x9879;&#x76EE;&#x7684;&#x4E00;&#x4E2A;&#x7EC4;&#x6210;&#x90E8;&#x5206;&#x3002;</p>
<p>&#x662F;&#x4E00;&#x4E2A;&#x529F;&#x80FD;&#x5F3A;&#x5927;&#xFF0C;&#x6613;&#x4E8E;&#x4F7F;&#x7528;&#x7684;&#x5E93;&#x3002;&#x7528;&#x4E8E;&#x5728; Kafka &#x4E0A;&#x6784;&#x5EFA;&#x9AD8;&#x53EF;&#x5206;&#x5E03;&#x5F0F;&#x3001;&#x62D3;&#x5C55;&#x6027;&#xFF0C;&#x5BB9;&#x9519;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;</p>
<h2 id="611-kafka-stream-&#x7279;&#x70B9;">6.1.1 Kafka Stream &#x7279;&#x70B9;</h2>
<ol>
<li><p>&#x529F;&#x80FD;&#x5F3A;&#x5927; </p>
<p>&#x9AD8;&#x6269;&#x5C55;&#x6027;&#xFF0C;&#x5F39;&#x6027;&#xFF0C;&#x5BB9;&#x9519; </p>
</li>
<li><p>&#x8F7B;&#x91CF;&#x7EA7; </p>
<p>&#x65E0;&#x9700;&#x4E13;&#x95E8;&#x7684;&#x96C6;&#x7FA4; 
&#x4E00;&#x4E2A;&#x5E93;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x6846;&#x67B6;</p>
</li>
<li><p>&#x5B8C;&#x5168;&#x96C6;&#x6210; </p>
<p>100%&#x7684;Kafka 0.10.0&#x7248;&#x672C;&#x517C;&#x5BB9;
&#x6613;&#x4E8E;&#x96C6;&#x6210;&#x5230;&#x73B0;&#x6709;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F; </p>
</li>
<li><p>&#x5B9E;&#x65F6;&#x6027;</p>
<p>&#x6BEB;&#x79D2;&#x7EA7;&#x5EF6;&#x8FDF; 
&#x5E76;&#x975E;&#x5FAE;&#x6279;&#x5904;&#x7406; 
&#x7A97;&#x53E3;&#x5141;&#x8BB8;&#x4E71;&#x5E8F;&#x6570;&#x636E; 
&#x5141;&#x8BB8;&#x8FDF;&#x5230;&#x6570;&#x636E;</p>
</li>
</ol>
<hr>
<h2 id="612-&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x6709;kafka-stream">6.1.2 &#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x6709;Kafka Stream</h2>
<p>&#x5F53;&#x524D;&#x5DF2;&#x7ECF;&#x6709;&#x975E;&#x5E38;&#x591A;&#x7684;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7CFB;&#x7EDF;&#xFF0C;&#x6700;&#x77E5;&#x540D;&#x4E14;&#x5E94;&#x7528;&#x6700;&#x591A;&#x7684;&#x5F00;&#x6E90;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7CFB;&#x7EDF;&#x6709; Spark Streaming&#x548C;Apache Storm&#x3002;</p>
<p>Apache Storm&#x53D1;&#x5C55;&#x591A;&#x5E74;&#xFF0C;&#x5E94;&#x7528;&#x5E7F;&#x6CDB;&#xFF0C;&#x63D0;&#x4F9B;&#x8BB0;&#x5F55;&#x7EA7;&#x522B;&#x7684;&#x5904;&#x7406;&#x80FD;&#x529B;&#xFF0C;&#x5F53;&#x524D;&#x4E5F;&#x652F;&#x6301; SQL on Stream&#x3002;</p>
<p>&#x800C; Spark Streaming &#x57FA;&#x4E8E; Apache Spark&#xFF0C;&#x53EF;&#x4EE5;&#x975E;&#x5E38;&#x65B9;&#x4FBF;&#x4E0E;&#x56FE;&#x8BA1;&#x7B97;&#xFF0C;SQL&#x5904;&#x7406;&#x7B49;&#x96C6;&#x6210;&#xFF0C;&#x529F;&#x80FD;&#x5F3A;&#x5927;&#xFF0C;&#x5BF9;&#x4E8E;&#x719F;&#x6089;&#x5176;&#x5B83; Spark &#x5E94;&#x7528;&#x5F00;&#x53D1;&#x7684;&#x7528;&#x6237;&#x800C;&#x8A00;&#x4F7F;&#x7528;&#x95E8;&#x69DB;&#x4F4E;&#x3002;</p>
<p>&#x53E6;&#x5916;&#xFF0C;&#x76EE;&#x524D;&#x4E3B;&#x6D41;&#x7684; Hadoop &#x53D1;&#x884C;&#x7248;&#xFF0C;&#x5982; Cloudera &#x548C; Hortonworks&#xFF0C;&#x90FD;&#x96C6;&#x6210;&#x4E86;Apache Storm &#x548C; Apache Spark&#xFF0C;&#x4F7F;&#x5F97;&#x90E8;&#x7F72;&#x66F4;&#x5BB9;&#x6613;&#x3002;</p>
<p>&#x65E2;&#x7136; Apache Spark &#x4E0E; Apache Storm &#x62E5;&#x7528;&#x5982;&#x6B64;&#x591A;&#x7684;&#x4F18;&#x52BF;&#xFF0C;&#x90A3;&#x4E3A;&#x4F55;&#x8FD8;&#x9700;&#x8981; Kafka Stream &#x5462;&#xFF1F;&#x4E3B;&#x8981;&#x6709;&#x5982;&#x4E0B;&#x539F;&#x56E0;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x4E00;&#xFF0C;Spark &#x548C; Storm &#x90FD;&#x662F;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x6846;&#x67B6;&#xFF0C;&#x800C; Kafka Stream &#x63D0;&#x4F9B;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x4E8E;Kafka &#x7684;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7C7B;&#x5E93;&#x3002;</p>
<p>&#x6846;&#x67B6;&#x8981;&#x6C42;&#x5F00;&#x53D1;&#x8005;&#x6309;&#x7167;&#x7279;&#x5B9A;&#x7684;&#x65B9;&#x5F0F;&#x53BB;&#x5F00;&#x53D1;&#x903B;&#x8F91;&#x90E8;&#x5206;&#xFF0C;&#x4F9B;&#x6846;&#x67B6;&#x8C03;&#x7528;&#x3002;&#x5F00;&#x53D1;&#x8005;&#x5F88;&#x96BE;&#x4E86;&#x89E3;&#x6846;&#x67B6;&#x7684;&#x5177;&#x4F53;&#x8FD0;&#x884C;&#x65B9;&#x5F0F;&#xFF0C;&#x4ECE;&#x800C;&#x4F7F;&#x5F97;&#x8C03;&#x8BD5;&#x6210;&#x672C;&#x9AD8;&#xFF0C;&#x5E76;&#x4E14;&#x4F7F;&#x7528;&#x53D7;&#x9650;&#x3002;</p>
<p>&#x800C; Kafka Stream &#x4F5C;&#x4E3A;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7C7B;&#x5E93;&#xFF0C;&#x76F4;&#x63A5;&#x63D0;&#x4F9B;&#x5177;&#x4F53;&#x7684;&#x7C7B;&#x7ED9;&#x5F00;&#x53D1;&#x8005;&#x8C03;&#x7528;&#xFF0C;&#x6574;&#x4E2A;&#x5E94;&#x7528;&#x7684;&#x8FD0;&#x884C;&#x65B9;&#x5F0F;&#x4E3B;&#x8981;&#x7531;&#x5F00;&#x53D1;&#x8005;&#x63A7;&#x5236;&#xFF0C;&#x65B9;&#x4FBF;&#x4F7F;&#x7528;&#x548C;&#x8C03;&#x8BD5;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x4E8C;&#xFF0C;&#x867D;&#x7136; Cloudera &#x4E0E; Hortonworks &#x65B9;&#x4FBF;&#x4E86; Storm &#x548C; Spark &#x7684;&#x90E8;&#x7F72;&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x4E9B;&#x6846;&#x67B6;&#x7684;&#x90E8;&#x7F72;&#x4ECD;&#x7136;&#x76F8;&#x5BF9;&#x590D;&#x6742;&#x3002;</p>
<p>&#x800C; Kafka Stream &#x4F5C;&#x4E3A;&#x7C7B;&#x5E93;&#xFF0C;&#x53EF;&#x4EE5;&#x975E;&#x5E38;&#x65B9;&#x4FBF;&#x7684;&#x5D4C;&#x5165;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E2D;&#xFF0C;&#x5B83;&#x5BF9;&#x5E94;&#x7528;&#x7684;&#x6253;&#x5305;&#x548C;&#x90E8;&#x7F72;&#x57FA;&#x672C;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x8981;&#x6C42;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x4E09;&#xFF0C;&#x5C31;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7CFB;&#x7EDF;&#x800C;&#x8A00;&#xFF0C;&#x57FA;&#x672C;&#x90FD;&#x652F;&#x6301; Kafka &#x4F5C;&#x4E3A;&#x6570;&#x636E;&#x6E90;&#x3002;</p>
<p>&#x4F8B;&#x5982; Storm &#x5177;&#x6709;&#x4E13;&#x95E8;&#x7684; kafka-spout&#xFF0C;&#x800C; Spark &#x4E5F;&#x63D0;&#x4F9B;&#x4E13;&#x95E8;&#x7684; spark-streaming-kafka &#x6A21;&#x5757;&#x3002;</p>
<p>&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;Kafka &#x57FA;&#x672C;&#x4E0A;&#x662F;&#x4E3B;&#x6D41;&#x7684;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x7CFB;&#x7EDF;&#x7684;&#x6807;&#x51C6;&#x6570;&#x636E;&#x6E90;&#x3002;&#x6362;&#x8A00;&#x4E4B;&#xFF0C;&#x5927;&#x90E8;&#x5206;&#x6D41;&#x5F0F;&#x7CFB;&#x7EDF;&#x4E2D;&#x90FD;&#x5DF2;&#x90E8;&#x7F72;&#x4E86; Kafka&#xFF0C;&#x6B64;&#x65F6;&#x4F7F;&#x7528; Kafka Stream &#x7684;&#x6210;&#x672C;&#x975E;&#x5E38;&#x4F4E;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x56DB;&#xFF0C;&#x4F7F;&#x7528; Storm &#x6216; Spark Streaming &#x65F6;&#xFF0C;&#x9700;&#x8981;&#x4E3A;&#x6846;&#x67B6;&#x672C;&#x8EAB;&#x7684;&#x8FDB;&#x7A0B;&#x9884;&#x7559;&#x8D44;&#x6E90;&#xFF0C;&#x5982; Storm &#x7684; supervisor &#x548C; Spark on YARN &#x7684; node manager&#x3002;</p>
<p>&#x5373;&#x4F7F;&#x5BF9;&#x4E8E;&#x5E94;&#x7528;&#x5B9E;&#x4F8B;&#x800C;&#x8A00;&#xFF0C;&#x6846;&#x67B6;&#x672C;&#x8EAB;&#x4E5F;&#x4F1A;&#x5360;&#x7528;&#x90E8;&#x5206;&#x8D44;&#x6E90;&#xFF0C;&#x5982; Spark Streaming &#x9700;&#x8981;&#x4E3A; shuffle&#x548C;storage &#x9884;&#x7559;&#x5185;&#x5B58;&#x3002;&#x4F46;&#x662F; Kafka &#x4F5C;&#x4E3A;&#x7C7B;&#x5E93;&#x4E0D;&#x5360;&#x7528;&#x7CFB;&#x7EDF;&#x8D44;&#x6E90;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x4E94;&#xFF0C;&#x7531;&#x4E8E; Kafka &#x672C;&#x8EAB;&#x63D0;&#x4F9B;&#x6570;&#x636E;&#x6301;&#x4E45;&#x5316;&#xFF0C;&#x56E0;&#x6B64; Kafka Stream &#x63D0;&#x4F9B;&#x6EDA;&#x52A8;&#x90E8;&#x7F72;&#x548C;&#x6EDA;&#x52A8;&#x5347;&#x7EA7;&#x4EE5;&#x53CA;&#x91CD;&#x65B0;&#x8BA1;&#x7B97;&#x7684;&#x80FD;&#x529B;&#x3002;</p>
<hr>
<p>&#x7B2C;&#x516D;&#xFF0C;&#x7531;&#x4E8E; Kafka Consumer Rebalance &#x673A;&#x5236;&#xFF0C;Kafka Stream &#x53EF;&#x4EE5;&#x5728;&#x7EBF;&#x52A8;&#x6001;&#x8C03;&#x6574;&#x5E76;&#x884C;&#x5EA6;&#x3002;</p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-11-20 18:14:18
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../di-6-zhang-kafka-stream.html" class="navigation navigation-prev " aria-label="Previous page: 第 6 章 Kafka stream">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="62-kafka-stream-shu-ju-qing-xi-an-li.html" class="navigation navigation-next " aria-label="Next page: 6.2 Kafka Stream 数据清洗案例">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"6.1 概述","level":"1.6.1","depth":2,"next":{"title":"6.2 Kafka Stream 数据清洗案例","level":"1.6.2","depth":2,"path":"di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.md","ref":"di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.md","articles":[]},"previous":{"title":"第 6 章 Kafka stream","level":"1.6","depth":1,"path":"di-6-zhang-kafka-stream.md","ref":"di-6-zhang-kafka-stream.md","articles":[{"title":"6.1 概述","level":"1.6.1","depth":2,"path":"di-6-zhang-kafka-stream/61-gai-shu.md","ref":"di-6-zhang-kafka-stream/61-gai-shu.md","articles":[]},{"title":"6.2 Kafka Stream 数据清洗案例","level":"1.6.2","depth":2,"path":"di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.md","ref":"di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Fulume 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-6-zhang-kafka-stream/61-gai-shu.md","mtime":"2018-11-20T10:14:18.725Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T01:42:15.294Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

